<template>
  <div class="agent-mananger">
    <div class="side-bar">
      <side-bar :groupSettings="groupSettings"></side-bar>
    </div>
    <div class="config-wapper">
      <router-view></router-view>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent, toRefs, reactive } from 'vue'
import sideBar from '@common/components/sidebar/index.vue'

export default defineComponent({
  name: 'systemComponent',
  components: {
    sideBar
  },
  // ----------------生命周期-----------------------
  setup() {
    const state = reactive({
      groupSettings: {
        enterprise: {
          title: 'noGroup'
        }
      }
    })
    // ----------------传入属性-----------------------
    // ----------------内部属性-----------------------
    // ----------------计算属性-----------------------
    // ----------------监听方法-----------------------
    // ----------------调用方法-----------------------
    return {
      ...toRefs(state)
    }
  }
})
</script>

<style lang="stylus" scoped>
.agent-mananger
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  width: 100%;
  height: 100%;
  flex: none;
  order: 1;
  align-self: stretch;
  flex-grow: 1;
  .side-bar
    float left
    height 100%
  .config-wapper
    float right
    width calc(100vw - 240px)
    margin-top 2px
    overflow auto
</style>
